package com.nami.store.biz.user.application;

import com.nami.store.api.request.user.UserAddRequest;
import com.nami.store.api.response.user.UserDTO;
import com.nami.store.domain.UserDO;

import java.util.List;
import java.util.Map;

public interface UserAppService {

    boolean saveUser(UserAddRequest request);

    boolean batchSave(List<UserAddRequest> users);

    UserDTO getUserByUserId(String userId);

    UserDTO getUserById(String appKey, String userId);

    List<UserDTO> getUserByIds(List<String> userIds);

    UserDTO getUserByMobile(String mobile);

    UserDO getUserByAccount(String account);

    Map<String, UserDTO> getUsersByIds(List<String> userIds);

}
